<div class="col-sm-12">
  <div class="widget-box">
    <div class="widget-header">
      <h4>过滤条件</h4>
    </div>
    <div class="widget-body">
      <div class="widget-main">
        <form class="form-inline row">
          <div class="col-sm-3">
            <input type="text" name="search" value="{$query['search']}" class="form-control" placeholder="需要搜索的关键字">
          </div>
          <div class="col-sm-2">
            <select name="status" class="form-control">
              <option value=""  {if !is_numeric($query['status']) || !in_array($query['status'], [Gift::IS_ONLINE, Gift::IS_OFFLINE])}selected="selected"{/if}>状态</option>
              <option value="{Gift::IS_OFFLINE}" {if is_numeric($query['status']) && $query['status'] == Gift::IS_OFFLINE}selected="selected"{/if}>下架</option>
              <option value="{Gift::IS_ONLINE}" {if is_numeric($query['status']) && $query['status'] == Gift::IS_ONLINE}selected="selected"{/if}>上架</option>
            </select>
          </div>
          <div class="col-sm-2">
            <select name="type" class="form-control">
              <option value=""  {if !is_numeric($query['type']) || !in_array($query['type'], [Gift::IS_COUPON, Gift::IS_PRODUCT])}selected="selected"{/if}>礼品类型</option>
              <option value="{Gift::IS_COUPON}" {if is_numeric($query['type']) && $query['type'] == Gift::IS_COUPON}selected="selected"{/if}>优惠券</option>
              <option value="{Gift::IS_PRODUCT}" {if is_numeric($query['type']) && $query['type'] == Gift::IS_PRODUCT}selected="selected"{/if}>商品</option>
            </select>
          </div>


          <div class="col-sm-4">
            <button type="subbit" class="btn btn-purple btn-sm">
              查询
              <i class="icon-search icon-on-right bigger-110"></i>
            </button>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>